package com.idna.wsconsumer.axis2;

import javax.xml.namespace.QName;

import org.apache.axiom.om.OMElement;
import org.apache.axis2.AxisFault;
import org.apache.axis2.rpc.client.RPCServiceClient;

public class Axis2DynamicClientImpl implements Axis2DynamicClient
{
	private QName operationName;
	private Object[] inputs;
	private RPCServiceClient client;

	public OMElement invoke() throws AxisFault
	{
		return client.invokeBlocking(operationName, inputs);
	}

	public void setOperationName(QName operationName)
	{
		this.operationName = operationName;
	}

	public void setInputs(Object[] inputs)
	{
		this.inputs = inputs;
	}

	public void setClient(RPCServiceClient client)
	{
		this.client = client;
	}
}
